package com.pachong.android.frameworkbase.utils;

import android.content.Context;
import android.telephony.TelephonyManager;


/**
 * 获取设备上的数据
 * 
 * @author Vivi Peng
 * 
 * @version 1.0.0
 * 
 * @date 2014-11-14
 */
public class DeviceInfoUtil {

	public static final String getImei(Context context) {
		TelephonyManager telephonyMgr = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
		return telephonyMgr.getDeviceId();
	}

	public static final String getImsi(Context context) {
		TelephonyManager telephonyMgr = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
		return  telephonyMgr.getSubscriberId();
	}

}
